<style>
    #p-logo img{
     background: #000;
    }
    #address{
        display: inline-block;
        float: right;
     }
    .address{
        display: inline-block;
        float: left;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-firm_name" class="control-label col-xs-12 col-sm-2">{:__('Firm name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-firm_name" data-rule="required" class="form-control" name="row[firm_name]" type="text" value="{$row.firm_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_firm_name" class="control-label col-xs-12 col-sm-2">{:__('Firm name')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_firm_name" data-rule="" class="form-control" name="row[en_firm_name]" type="text" value="{$row.en_firm_name}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-logo" class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('logo',$row.logo,['name'=>"row[logo]",'data-rule'=>"required"])}
        </div>
    </div>

    <div class="form-group">
        <label for="c-web_name" class="control-label col-xs-12 col-sm-2">{:__('Web name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-web_name" data-rule="required" class="form-control" name="row[web_name]" type="text" value="{$row.web_name}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_web_name" class="control-label col-xs-12 col-sm-2">{:__('Web name')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_web_name" data-rule="" class="form-control" name="row[en_web_name]" type="text" value="{$row.en_web_name}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-web_keywords" class="control-label col-xs-12 col-sm-2">{:__('Web keywords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-web_keywords" data-rule="" class="form-control" name="row[web_keywords]" rows="5">{$row.web_keywords}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_web_keywords" class="control-label col-xs-12 col-sm-2">{:__('Web keywords')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-en_web_keywords" data-rule="" class="form-control" name="row[en_web_keywords]" rows="5">{$row.en_web_keywords}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" data-rule="email" class="form-control" name="row[email]" type="text" value="{$row.email}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="{$row.mobile}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-address" class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input style="width: 75%;" data-rule="required" id="c-address" class="form-control address" name="row[address]" type="text" value="{$row.address}">
            <input id="c-lat" class="form-control lat" name="row[lat]" type="hidden" value="{$row.lat}" >
            <input id="c-lng" class="form-control lng" name="row[lng]" type="hidden" value="{$row.lng}" >
            <button type='button' class='btn btn-primary' id="address" data-toggle="addresspicker" data-input-id='c-address' data-lat-id='c-lat' data-lng-id='c-lng'>选择地址</button>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_address" class="control-label col-xs-12 col-sm-2">{:__('Address')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input style="width: 75%;" data-rule="" id="c-en_address" class="form-control address" name="row[en_address]" type="text" value="{$row.en_address}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-icp" class="control-label col-xs-12 col-sm-2">{:__('Versions')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-versions" data-rule="required" class="form-control" name="row[versions]" type="text" value="{$row.versions}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-icp" class="control-label col-xs-12 col-sm-2">{:__('Versions')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_versions" data-rule="" class="form-control" name="row[en_versions]" type="text" value="{$row.en_versions}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-icp" class="control-label col-xs-12 col-sm-2">{:__('Icp')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-icp" data-rule="required" class="form-control" name="row[icp]" type="text" value="{$row.icp}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-tx_map_key" class="control-label col-xs-12 col-sm-2">{:__('Tx map key')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tx_map_key" data-rule="required" class="form-control" name="row[tx_map_key]" type="text" value="{$row.tx_map_key}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-web_code" class="control-label col-xs-12 col-sm-2">{:__('Web code')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('web_code',$row.web_code,['name'=>"row[web_code]",'msg_tip'=>'建议尺寸:122 * 122','data-rule'=>"required"])}
        </div>
    </div>
    <div class="form-group layer-footer" style="margin-bottom: 50px;">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('save')}</button>
        </div>
    </div>
</form>